import request from '@/utils/request'

// 查询采购信息列表
export function listProcure(query) {
  return request({
    url: '/system/procure/list',
    method: 'get',
    params: query
  })
}

// 查询采购信息详细
export function getProcure(ordersId) {
  return request({
    url: '/system/procure/' + ordersId,
    method: 'get'
  })
}

// 新增采购信息
export function addProcure(data) {
  return request({
    url: '/system/procure',
    method: 'post',
    data: data
  })
}

// 修改采购信息
export function updateProcure(data) {
  return request({
    url: '/system/procure',
    method: 'put',
    data: data
  })
}

// 删除采购信息
export function delProcure(ordersId) {
  return request({
    url: '/system/procure/' + ordersId,
    method: 'delete'
  })
}
